package com.smartcampusbackend.service;

import com.smartcampusbackend.model.PaymentOrder;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface PaymentOrderService {
    PaymentOrder createOrder(PaymentOrder order);
    boolean payOrder(String orderNo, String payMethod);
    boolean cancelOrder(String orderNo);
    PaymentOrder getOrderByOrderNo(String orderNo);
    
    // 根据用户角色查询订单
    List<PaymentOrder> getUserOrders(Integer userId, String year, String category, String userRole);
    
    // 管理员查询所有订单
    List<PaymentOrder> getAllOrders(String year, String category, String username);
    
    // 获取学生专业费用信息
    Map<String, BigDecimal> getStudentFees(Integer userId);
    
    // 验证学生专业信息
    boolean validateStudentMajor(Integer userId);
} 